<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>时间</title>
</head>
<body>
    <div id="app">
        时间1：{{mytime()}}{{mystop()}}<br>
        时间2：{{mytime()}}{{mystop()}}<br>
        时间3：{{yourtime()}}{{mystop()}}<br>
        时间4：{{yourtime()}}
    </div>

    <script src="js/vue.global.js"></script>
    <script>
        const CounterApp ={
            methods:{
                mytime(){
                    return Date.now()
                },
                mystop(){
                    alert('暂停一下')
                },               
            },
            computed:{
                yourtime(){
                    return Date.now()
                }
            }
        }
        Vue.createApp(CounterApp).mount('#app');
    </script>
</body>
</html>